@import "./common.less";
@import "./object.less";


.main[id]{
  margin-top: 40px;
}

#header{
  color: @CL_Theme_Text;
  position: fixed;
  top: 0px;
  z-index: 1;
  height: 30px;
  background-color: @CL_Theme;
  span[data-page]{
    background: @CL_Theme - #111;
    cursor: pointer;
    padding: 5px;
    display: inline-block;
    a{
      color: @CL_Theme_Text;
      text-decoration: none;
      &:hover{
        color: @CL_Theme_Text_Hover;
      }
    }
  }
}


section#dashboard_main{
  .tag-selector{
    display: table;
    width: 100%;
    height: 40px;
    position: fixed;
    bottom: 0px;
    background: @CL_Theme;
    .tag-list{
      width: 70%;
      float: left;
      .tag{
        .TAG;
        padding: 0 4px;
        line-height: 20px;
        display: inline-block;
      }
    }
    .tag-input{
      width: 30%;
      float: left;
      .sort{
        display: inline-block;
        float: left;
        width: 20%;
        text-align: center;
        cursor: pointer;
        position: relative;
        color: @CL_Theme_Text_Holder;
        line-height: 22px;
        margin-top: 1%;
        ul{
          position: absolute;
          display: none;
          width: 100px;
          bottom: 22px + 1%;
          li{
            background: @CL_Theme;
            color: @CL_Theme_Text;
            margin: 1px 0;
            &:hover{
              background: @CL_Theme + #222;
              color: @CL_Theme_Text + #222;
            }
            &.selected{
              background: @CL_Theme + #333;
              color: @CL_Theme_Text + #333;
            }
          }
        }
        &:hover{
          ul{
            display: block;
          }
        }
      }
      input{
        width: 79%;
        float: left;
        border: 0;
        height: 22px;
        margin: 1% 0;
        background-color: @CL_Theme + #555;
        color: @CL_Theme_Text_Input;
      }
    }
  }
  aside.side-bar{
    width: 20%;
    float: left;
    ul{
      margin-top: 10px;
      li.action{
        text-align: center;
        background-color: @CL_Theme;
        line-height: 42px;
        color: @CL_Theme_Text;
        cursor: pointer;
        margin: 1px 0;
        width: 144px;
        &:hover{
          font-size: 17px;
          background: @CL_Theme + #222;
          color: @CL_Theme_Text + #222;
        }
        &.selected{
          background: @CL_Theme + #333;
          color: @CL_Theme_Text + #333;
        }
      }
    }
  }
  .object-container{
    width: 80%;
    display: block;
    float: left;
    overflow-y: auto;
    background-color: @CL_Theme + #ddd;
    .object{
      width: 100px;
      height: 100px;
      float: left;
      margin: 10px;
      background: @CL_Theme + #aaa;
//      background-image: url("/asset/images/object/normal.png");
      .object;
      &:hover{
        outline: 10px solid @CL_Theme + #666;
      }
    }
  }
}

#post_main{
  width: 720px;
  margin: 40px auto 0 auto;

  .post-input{
    width: 540px;
    float: right;
    position: relative;
    .virtual{
      height: 20px;
      outline-color: #333;
      outline-width: 2px;
      outline-style: dashed;
      margin-bottom: 5px;
      cursor: pointer;
      &.out{
        outline-width: 0;
      }
    }
    .real{
      position: absolute;
      top: 0;
      right: 8px;
      z-index: 1;
      background-color: @CL_Theme;
      padding: 10px 10px 40px 10px;
      display: none;
    }
//    &:hover{
//      .virtual{
//        outline-width: 0;
//      }
//      .real{
//        display: block;
//      }
//    }
    textarea{
      width: 540px;
      height: 56px;
      margin: 10px 0;
      float: right;
      resize: none;
      font-size: 14px;
      border-color: @CL_Theme;
      color: @CL_Theme_Text_Input;
    }
    button{
      float: left;
      margin-right: -538px;
      margin-top: 12px;
      height: 52px;
      width: 52px;
      float: right;
      background: @CL_Theme;
      border: 0;
      color: #fff;
      font-size: 16px;
      cursor: pointer;
      text-align: center;
    }
    .attach{
      width: 536px;
      min-height: 56px;
      float: left;
      outline-width: 2px;
      outline-color: @CL_Theme + #333;
      outline-style: dashed;
      margin: -5px 2px 5px 2px;
      text-align: center;
      background: @CL_White;
      &.none-attach{
        display: none;
      }
      .attach-one{
        min-height: 56px;
        max-width: 536px;
        display: inline-block;
        img{
          max-height: 300px;
          max-width: 536px;
        }
        &.text{
          padding: 20px 0px;
          box-sizing: border-box;
          min-width: 56px;
          text-align: center;
        }
      }
    }
    .tags-bar{
      display: table;
      width: 538px;
      border: 1px solid #eee;
      background-color: @CL_White;
      padding: 3px 0;
      input{
        float: left;
        border: none;
      }
      .tag{
        float: left;
        margin: -1px 4px 0px 2px;
        line-height: 16px;
        background: @CL_Theme + #222;
        font-size: 12px;
        padding: 0 6px;
        color: @CL_White - #222;
      }
    }
    .close{
      top: initial;
      bottom: 6px;
      display: inline-block;
      border: 1px solid #ccc;
      width: 80px;
      line-height: 26px;
      text-align: center;
      right: 10px;
      &:hover{
        background-color: @CL_Theme + #111;
        color: @CL_White - #111;
      }
    }
  }

  ul.post-list{
    width: 720px;
    display: block;
    overflow-y: auto;
    margin: 0;
    min-height: 100px;
    li{
      width: 720px;
      display: table;
      background-color: @CL_Theme + #333;
      color: @CL_White;
//      border-radius: 10px;
      min-height: 50px;
      margin: 20px 0;
      padding: 10px 0;
//      outline: 1px @CL_Theme solid;
      position: relative;
//      display: none;
      .one{
        width: 180;
        float: left;
        text-align: center;
        img.avatar{
          width: 48px;
          margin: 2;
        }
      }
      .content{
        width: 540px;
        float: right;
//        border-top: 1px @CL_Theme solid;
        padding: 0 10px;
        box-sizing: border-box;
        .info-bar{
          font-size: 10px;
          .tags{
            span[data-type]{
              .TAG;
            }
          }
        }
        .attach{
          text-align: center;
          margin: 5px;
          img{
            max-width: 98%;
            max-height: 400px;
            margin: 4px;
            outline: solid #abc;
          }
        }
        .action-bar{
          .action{
            display: inline-block;
            float: left;
            margin: 0 8px;
            border: 1px solid;
            padding: 1px 5px;
            cursor: pointer;
          }
          .like{
            background-image: url('/asset/images/like.jpg');
            background-size: contain;
            display: inline-block;
            width: 29px;
            height: 20px;
            cursor: pointer;
          }
          .action-box{
            clear: both;
            display: none;
            text-align: center;
            textarea{
              padding-top: 2px;
              background-color: @CL_Theme + #555;
            }
          }
        }
      }
      .delete{
        position: absolute;
        display: none;
        top: 0;
        right: 3px;
        color: #ccc;
        font-size: 12px;
        cursor: pointer;
        &:hover{
          color: #666;
        }
      }
      &:hover{
        .delete{
          display: inline-block;
        }
      }
    }
  }
}